package com.mjkj.demo.model.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author XuDoom
 * @date 2023/3/20 10:05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserReq", description="UserReq")
public class UserReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    private Integer id;

    @ApiModelProperty(value = "用户账号")
    @NotBlank(message = "账号不能为空")
    private String username;

    @ApiModelProperty(value = "角色名")
    @NotBlank(message = "角色名")
    private String role;

}
